﻿@model PilotProject.Question

@{
    ViewBag.Title = "Details";
}

<h2>Details</h2>

<fieldset>
    <legend>Question</legend>

    <div class="display-label">QuestionBody</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.QuestionBody)
    </div>

@*    <div class="display-label">Type</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.TestEngineId)
    </div>*@

    <div class="display-label">IsActive</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.IsActive)
    </div>

    <div class="display-label">CreateDateTime</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.CreateDateTime)
    </div>



    <div class="display-label">Options </div>
    @foreach (var item in @Model.Options)
    {  
    <div class="display-field">
        @Html.DisplayFor(model => item.OptionBody)
        @Html.DisplayFor(model => item.IsCorrect))
    </div>
    }


</fieldset>
<p>
    @Html.ActionLink("Edit", "Edit", new { id=Model.Id }) |
    @Html.ActionLink("Back to List", "Index")
</p>
